package com.zhaoyh.service;

import com.zhaoyh.bean.Equipment;
import com.zhaoyh.mapper.EquipmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author 祥霸
 * @date 2019/2/19
 */
@Service
public class EquipmentService {

    @Autowired
    EquipmentMapper equipmentMapper;

    public String insertEquipment(String etno, Date dataTime, Integer userID, Integer isLogin) {
        equipmentMapper.insertEquipment(etno, dataTime, userID, isLogin);
        return "success";
    }

    public Equipment getEquipment(String etno) {
        return equipmentMapper.getEquipment(etno);
    }
}
